# filepath: d:\CompanyProject\Gitee\DBCompareX\backend\app\schemas\task_data_sync\execution_log.py
from pydantic import BaseModel, Field
from typing import Optional

class TaskDataExecutionLogQuery(BaseModel):
    """查询执行日志记录的请求模型"""
    taskId: Optional[str] = Field(None, description="任务ID")
    batchNo: Optional[str] = Field(None, description="批次号")
    status: Optional[int] = Field(None, description="状态 (-1 失败，1 执行中，2 数据对比正常，3 数据对比失败)")
    page: int = Field(1, description="页码")
    size: int = Field(10, description="每页记录数")

class TaskDataContrastResultQuery(BaseModel):
    """查询对比结果的请求模型"""
    taskLogId: str = Field(..., description="执行日志ID")

class TaskDataContrastResultExport(BaseModel):
    """导出对比结果的请求模型"""
    taskLogId: str = Field(..., description="执行日志ID")

class TaskComparisonDataQuery(BaseModel):
    """查询配对对比数据的请求模型"""
    taskLogId: str = Field(..., description="执行日志ID")
    offset: int = Field(0, description="跳过的记录数")
    limit: int = Field(100, description="返回的记录数限制")